package com.dahuyou.tryy.too.simulate.interpreter.parse.clazz.clazzfile.constantpool.item;

import com.dahuyou.tryy.too.simulate.interpreter.parse.clazz.clazzfile.ClassReader;
import com.dahuyou.tryy.too.simulate.interpreter.parse.clazz.clazzfile.constantpool.ConstantInfo;

public class ConstantInvokeDynamicInfo implements ConstantInfo {

    private int bootstrapMethodAttrIdx;
    private int nameAndTypeIdx;

    @Override
    public void readInfo(ClassReader reader) {
//        this.bootstrapMethodAttrIdx = reader.readUint16();
        this.bootstrapMethodAttrIdx = reader.readU2();
//        this.nameAndTypeIdx = reader.readUint16();
        this.nameAndTypeIdx = reader.readU2();
    }

    @Override
    public int tag() {
        return this.CONSTANT_TAG_INVOKEDYNAMIC;
    }

    @Override
    public void showInfo() {

    }
}
